<?php

namespace app\common\validate;

use app\admin\validate\Admin;
use think\Validate;

class AdminRoleValidate extends Validate
{
    protected $rule = [
        'role_name' => 'require|min:1|max:20|unique:admin_role',
    ];


    protected $field = [
        'role_name' => '角色名',
    ];

    protected $scene = [
        'add' => ['role_name'],
    ];

}